﻿package com.toncen.samepms.system.domain;

import java.util.Date;

import com.toncen.samepms.common.AbstractDomain;
import com.sky.dataimport.DynamicCellDataCell;
import com.sky.dataimport.DynamicCellDataRow;
import com.sky.dataimport.DynamicRowDataCell;
import com.sky.dataimport.DynamicRowDataRow;
import com.sky.dataimport.StaticDataCell;
import com.sky.dataimport.StaticDataRow;
import com.sky.dataimport.datatype.DateDataType;
import com.sky.dataimport.datatype.IntegerDataType;
import com.sky.dataimport.formater.UtilDateDataFormater;
 
/**
 * 描述：常见问题表SYSTEM_FAQ的domain文件
 * 
 * @author tch
 */
@DynamicRowDataRow(title = "动态行常见问题", sheetIndex = 1, startRowIndex = 2, startCellIndex = 1, inserted = false)
@DynamicCellDataRow(title = "动态列常见问题", sheetIndex = 1, startRowIndex = 2, startCellIndex = 2, inserted = false)
@StaticDataRow(title = "静态行列常见问题", sheetIndex = 1)
public class Faq extends AbstractDomain {
	/**
	 * 序列号
	 */
	private static final long serialVersionUID = 1334654505421L;
	
	/**
	 * 类型
	 */ 
	@StaticDataCell(rowIndex = 1, cellIndex = 1, title = "类型")
	@DynamicRowDataCell(cellIndex = 1,  title = "类型", require = false)
	@DynamicCellDataCell(rowIndex = 1,  title = "类型", require = false)
	@IntegerDataType(msg = "必须为整数类型")
	private  int type; 	 
    
	/**
	 * 问题
	 */ 
	@StaticDataCell(rowIndex = 2, cellIndex = 2, title = "问题")
	@DynamicRowDataCell(cellIndex = 2,  title = "问题", require = false)
	@DynamicCellDataCell(rowIndex = 2,  title = "问题", require = false)
	private  String question; 	 
    
	/**
	 * 解答
	 */ 
	@StaticDataCell(rowIndex = 3, cellIndex = 3, title = "解答")
	@DynamicRowDataCell(cellIndex = 3,  title = "解答", require = false)
	@DynamicCellDataCell(rowIndex = 3,  title = "解答", require = false)
	private  String answer; 	 
    
	/**
	 * 发布时间
	 */ 
	@StaticDataCell(rowIndex = 5, cellIndex = 5, title = "发布时间")
	@DynamicRowDataCell(cellIndex = 5, title = "发布时间", formater = UtilDateDataFormater.class, option = "yyyy-MM-dd", require = false)
	@DynamicCellDataCell(rowIndex = 5, title = "发布时间", formater = UtilDateDataFormater.class, option = "yyyy-MM-dd", require = false)
	@DateDataType
	private  Date publishDate=new Date(); 	 
    
	/**
	 * 顺序
	 */ 
	@StaticDataCell(rowIndex = 6, cellIndex = 6, title = "顺序")
	@DynamicRowDataCell(cellIndex = 6,  title = "顺序", require = false)
	@DynamicCellDataCell(rowIndex = 6,  title = "顺序", require = false)
	@IntegerDataType(msg = "必须为整数类型")
	private  int sequence; 	 
    

	public Faq() {
		super();
	}

	/**
	 * @return the  type
	 */
	public  int getType() {
		return  type;
	}

	/**
	 * @param  type
	 *            the  type to set
	 */
	public void setType( int  type) {
		this. type =  type;
	}
	
	/**
	 * @return the  question
	 */
	public  String getQuestion() {
		return  question;
	}

	/**
	 * @param  question
	 *            the  question to set
	 */
	public void setQuestion( String  question) {
		this. question =  question;
	}
	
	/**
	 * @return the  answer
	 */
	public  String getAnswer() {
		return  answer;
	}

	/**
	 * @param  answer
	 *            the  answer to set
	 */
	public void setAnswer( String  answer) {
		this. answer =  answer;
	}
	
	/**
	 * @return the  publishDate
	 */
	public  Date getPublishDate() {
		return  publishDate;
	}

	/**
	 * @param  publishDate
	 *            the  publishDate to set
	 */
	public void setPublishDate( Date  publishDate) {
		this. publishDate =  publishDate;
	}
	
	/**
	 * @return the  sequence
	 */
	public  int getSequence() {
		return  sequence;
	}

	/**
	 * @param  sequence
	 *            the  sequence to set
	 */
	public void setSequence( int  sequence) {
		this. sequence =  sequence;
	}
	
}
